package com.sun.springCache;

import java.util.HashMap;
import java.util.Map;

public class PersonDao {
	private static Map<String, Person> map = new HashMap<>();
	
	static {
		for (int i = 0; i < 10; i++) {
			map.put(i + "", new Person(i + "", "name" + i, "aaa"));
		}
	}
	
	public Person getPersonById(String id) {
		return map.get(id);
	}
}
